/**
 * Create by yxk at 2020/6/12
 */
import request from '@/utils/request'

/**
 * 入库单新建/编辑
 */
export function jxcReceiptAddOrUpdateAPI(data) {
  return request({
    url: 'jxcReceipt/addOrUpdate',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 入库单详情
 */
export function jxcReceiptQueryByIdAPI(data) {
  return request({
    url: `jxcReceipt/queryById/${data.label}`,
    method: 'post',
    data: data
  })
}

/**
 * 入库单作废
 */
export function jxcReceiptSetStateByIdsAPI(data) {
  return request({
    url: 'jxcReceipt/setStateByIds',
    method: 'post',
    data: data
  })
}

/**
 * 查询可入库的产品
 */
export function jxcReceiptQueryEdProductListAPI(data) {
  return request({
    url: 'jxcReceiptProduct/queryEdReceiptProductList',
    method: 'post',
    data: data
  })
}

/**
 * 查询入库单下的产品
 */
export function jxcReceiptQueryProductListAPI(data) {
  return request({
    url: 'jxcReceiptProduct/queryReceiptProductList',
    method: 'post',
    data: data
  })
}



